package com.starryx.blog.service;


import com.github.pagehelper.PageInfo;
import com.starryx.blog.po.Tag;
import com.starryx.blog.vo.Page;


import java.util.List;

/**
 * Created by limi on 2017/10/16.
 */
public interface TagService {

    int saveTag(Tag type);

    Tag getTag(Long id);

    Tag getTagByName(String name);

    PageInfo<Tag> listTag(Page page);

    List<Tag> listTag();

    List<Tag> listTagTop(Integer size);

    List<Tag> listTag(String ids);

    int updateTag(Long id, Tag tag);

    void deleteTag(Long id);
}
